package com.chushouya.manager.dao.repository;

import com.chushouya.manager.dao.entity.ProgramEntity;
import com.chushouya.manager.dao.mapper.AlipayProgramMapper;
import com.general.framework.data.mybatis.BaseRepository;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

@Repository
public class AlipayProgramRepository extends BaseRepository<AlipayProgramMapper, ProgramEntity, Long> {

    public ProgramEntity selectByAppId(String appId) {
        Example example = buildExample();
        example.and().andEqualTo("appId", appId);
        return selectFirstOneByExample(example);
    }

}
